package com.android.infantschool.ui.imageloader;

import android.content.Context;
import android.nfc.Tag;
import android.util.Log;
import android.widget.ImageView;

import com.android.infantschool.R;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.CenterCrop;
import com.youth.banner.loader.ImageLoader;

/**
 * @author Administrator
 * @particulars
 * @time 2019\7\3 0003 13:16
 * @class describe
 */
public class GlideImageLoader extends ImageLoader {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        /**
         * glide加载广告图片
         */
        Glide.with(context).load(path).placeholder(R.mipmap.icon_home_banner).error(R.mipmap.icon_home_banner).into(imageView);
    }
}